generate_question(const char* dns_name, unsigned char* buf, int* len)
{// addr = 0x0804E215
    char* pos;
    unsigned char* ptr;
    int n;
    _unknown_ _v12;
    unsigned char* _v16;
    const char* _v20;
    _unknown_ _v28;
    intOrPtr _v32;
    _unknown_ _v36;
    intOrPtr _v40;
    _unknown_ r1;
    _unknown_ r6;
    _unknown_ _t53;
    intOrPtr _t58;
    _unknown_ _t60;
    _unknown_ _t68;
    _unknown_ _t75;
    _unknown_ _t82;
    _unknown_ _t86;
    _unknown_ _t91;
    _unknown_ _t92;
    _unknown_ _t101;

     *len = 0;
    _v16 = buf;
    _v20 = dns_name;
    while(1) {
        _t58 = L0806E770(__esp, _t101, _v20);
        _v32 = _t58;
        _v40 = 46;
         *__esp = _v20;
        _t60 = L0806E360(__esp);
        _t102 = _t60;
        if(_t60 == 0) {
            goto L3;
        } else {
            goto L2;
        }
    }
}